package com.fxz.oauth.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fxz.oauth.domain.Auth;
import com.fxz.oauth.domain.User;

/**
 * @author Fxz
 * @version 1.0
 * @date 2021-08-04 10:26
 */
public interface IUserService extends IService<User> {
    /**
     * 登录、返回访问token和刷新token
     *
     * @param username
     * @param password
     * @return
     */
    public Auth login(String username, String password);

    /**
     * 注册 返回一个user
     * @param user
     * @return
     */
    public User register(User user);
}
